isset($title) or $title='';
if($title){
    $title2=$this->db->escape($title);
    $cond.=" and title like '%{$title}%'";
}